<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>待收件洗涤</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="__PUBLIC__/client/css/cui.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/client/css/slick.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/auntie/css/style.css?sj={$tj}" />
	<script type="text/javascript" src="__PUBLIC__/client/js/jquery.js"></script>
</head>
<body class="mhome">
	<div class="viewport">
        <!--<div class="sitemap">
            <a href="index.html" class="goback"></a>我的订单
        </div>-->
        <!--end header-->
		<div id="bd" class="fix">
            <div class="bg-f2">
                <ul class="ul-type">
                    <li><a href="{:U('Business/Order/lists')}">待收件</a></li>
                    <li class="on"><a href="{:U('Business/Order/lists2')}">待送件</a></li>
                    <li><a href="{:U('Business/Order/lists3')}">已完成</a></li>
                </ul>
            </div>
            <ul class="ul-collect">
            	
            		<volist name="order" id="vo">
				 <li>
				 	<a href="{:U('Business/order/orderinfo',array('orderid'=>$vo['orderid']))}">
                    <div class="con">
                        <div class="pic"><img src="{$vo.uimg}" alt=""></div>
                        <div class="txt">
                            <h4>{$vo.name}</h4>
                            <p>预约了一次<span>"
                            	<foreach name="entry" item="vos" > 
	                        		<if condition="$key eq $vo['wash_type']">  {$vos} </if> 
	                        	</foreach> 
                            	 "</span>的<span>洗涤</span>服务</p>
                        </div>
                        <div class="youjiantou"></div>
                    </div>
                    </a>
                    <div class="bot">
                        <a href="javascript:;" data-orderid = "{$vo.orderid}" class="btn-yellow btn-yellow3 songyi"> 通知送衣 </a>
                        <span>预约时间：{$vo.pickup_time}</span>
                    </div>
                </li>
            		</volist>
                <!--<li>
                    <div class="con">
                        <div class="pic"><img src="__PUBLIC__/client/images/u-13.png" alt=""></div>
                        <div class="txt">
                            <h4>挺美丽</h4>
                            <p>预约了一次<span>"羽绒服"</span>的<span>洗涤</span>服务</p>
                        </div>
                    </div>
                    <div class="bot">
                        <a href="{:U('Auntie/index/orderinfo')}" class="btn-yellow btn-yellow3">立即抢单</a>
                        <span>预约时间：5分钟前</span>
                    </div>
                </li>
                <li>
                    <div class="con">
                        <div class="pic"><img src="__PUBLIC__/client/images/u-13.png" alt=""></div>
                        <div class="txt">
                            <h4>挺美丽</h4>
                            <p>预约了一次<span>"羽绒服"</span>的<span>洗涤</span>服务</p>
                        </div>
                    </div>
                    <div class="bot">
                        <a href="{:U('Auntie/index/orderinfo')}" class="btn-yellow btn-yellow3">立即抢单</a>
                        <span>预约时间：5分钟前</span>
                    </div>
                </li>-->
            </ul>
		</div>
		<!--end #bd-->
	</div>
</body>
<script src="__PUBLIC__/business/js/normal.js?sj={$tj}"></script>
<script>
//取消订单
$('.songyi').on('click',function(){
	var orderid=$(this).attr('data-orderid');
	var tourl="{:U('Business/api/order_song')}";
	var data={orderid:orderid,set:'5'}
	$.post(tourl,data,function(data){
	   if(data.status!=1){
	    		Msg('失败!',2);
	    }else{
	    		Msg('成功!',1);
	    		setTimeout(function(){
	    			window.location.href="{:U('Business/order/lists2')}"; 
			},1000);
	    }
	 });
});
</script>
</html>